#define _CRT_SECURE_NO_WARNINGS 1
#include"bttree.h"
#include"queue.h"


void test01()
{
	char a[18] = "ABD##E#H##CF##G##";
	int  i = 0;
	BTNode* bt = BinaryTreeCreate(a, 17, &i);

	int ret = 0;
	BTNode* cret = 0;
	ret = BinaryTreeSize(bt);
	ret = BinaryTreeLeafSize(bt);
	ret = BinaryTreeLevelKSize(bt,3);
	cret = BinaryTreeFind(bt, 'C');
	
	BinaryTreePrevOrder(bt);
	BinaryTreeInOrder(bt);
	BinaryTreePostOrder(bt);
	BinaryTreeLevelOrder(bt);

	ret = BinaryTreeComplete(bt);

	BinaryTreeDestory(&bt);
}

int main()
{
	test01();

	return 0;
}